/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cn.ekuma.epos.swing.calc;

/**
 *
 * @author Administrator
 */
public class MSubCommand extends AbstractCommand{

    @Override
    public double calc(double inData) {
        CalcManger.setMsValue(CalcManger.getMsValue()-inData);
        return inData;
    }

    @Override
    public String getCommStyle() {
        return this.COMM_MSUB;
    }

    @Override
    public boolean isSuportReCalc() {
        return false;
    }
    @Override
    public CalcLogic clone() {
        MSubCommand  temp=new MSubCommand();
        return temp;
    }

}
